<?php

namespace App\Observers;
use App\Models\Site;
class SiteObserver
{
    public function deleted(Site $site)
    {
        \DB::table('ads')->where('site_id', $site->id)->delete();
    }
}
